<%@ page import="com.future.TaskUpdate" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <g:set var="entityName" value="${message(code: 'taskUpdate.label', default: 'TaskUpdate')}"/>
  <title><g:message code="default.list.label" args="[entityName]"/></title>
</head>
<body>

<div class="body">
  <div class="nav">
    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]"/></g:link></span>
  </div>
  <h1><g:message code="default.list.label" args="[entityName]"/></h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <div class="list">
    <table>
      <thead>
      <tr>

        <g:sortableColumn property="id" title="${message(code: 'taskUpdate.id.label', default: 'Id')}"/>

        <g:sortableColumn property="updateInfo" title="${message(code: 'taskUpdate.updateInfo.label', default: 'Update Info')}"/>

        <g:sortableColumn property="thisVersion" title="${message(code: 'taskUpdate.thisVersion.label', default: 'This Version')}"/>

        <th><g:message code="taskUpdate.task.label" default="Task"/></th>

        <g:sortableColumn property="dateCreated" title="${message(code: 'taskUpdate.dateCreated.label', default: 'Date Created')}"/>

      </tr>
      </thead>
      <tbody>
      <g:each in="${taskUpdateInstanceList}" status="i" var="taskUpdateInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

          <td><g:link action="show" id="${taskUpdateInstance.id}">${fieldValue(bean: taskUpdateInstance, field: "id")}</g:link></td>

          <td>${fieldValue(bean: taskUpdateInstance, field: "updateInfo")}</td>

          <td>${fieldValue(bean: taskUpdateInstance, field: "thisVersion")}</td>

          <td><g:link action="show" controller="task" id="${taskUpdateInstance.task.id}">${fieldValue(bean: taskUpdateInstance, field: "task.taskName")}</g:link></td>

          <td><g:formatDate date="${taskUpdateInstance.dateCreated}"/></td>

        </tr>
      </g:each>
      </tbody>
    </table>
  </div>
  <div class="paginateButtons">
    <g:paginate total="${taskUpdateInstanceTotal}"/>
  </div>
</div>
</body>
</html>
